<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Add a tuple to a relation</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.dbplus-add" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dbplus_add</h1>
  <p class="verinfo">(PHP 4 &lt;= 4.1.0, PECL dbplus &gt;= 0.9)</p><p class="refpurpose"><span class="refname">dbplus_add</span> &mdash; <span class="dc-title">Add a tuple to a relation</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.dbplus-add-description">
  <h3 class="title">说明</h3>
  
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>dbplus_add</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$relation</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$tuple</code></span>
   ) : <span class="type">int</span></div>

  <p class="para rdfs-comment">
   Adds a tuple to a <code class="parameter">relation</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.dbplus-add-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">relation</code></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">tuple</code></dt>

     <dd>

      <p class="para">
       An array of attribute/value pairs to be inserted into the given
       <code class="parameter">relation</code>.
      </p>
      <p class="para">
       After successful execution this array will contain the complete data
       of the newly created tuple, including all implicitly set domain fields
       like sequences.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.dbplus-add-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The function will return <strong><code>DBPLUS_ERR_NOERR</code></strong> on success
   or a db++ error code on failure.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.dbplus-add-notes">
  <h3 class="title">注释</h3>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.dbplus-add-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="dbplus_errcode.html" class="function" rel="rdfs-seeAlso">dbplus_errcode()</a> - Get error string for given errorcode or last error</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>